package com.ruoyi.cus.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cus.mapper.CusUserMapper;
import com.ruoyi.cus.domain.CusUser;
import com.ruoyi.cus.service.ICusUserService;

/**
 * 自定义用户Service业务层处理
 * 
 * @author chiry
 * @date 2021-09-25
 */
@Service
public class CusUserServiceImpl implements ICusUserService 
{
    @Autowired
    private CusUserMapper cusUserMapper;

    /**
     * 查询自定义用户
     * 
     * @param id 自定义用户主键
     * @return 自定义用户
     */
    @Override
    public CusUser selectCusUserById(Long id)
    {
        return cusUserMapper.selectCusUserById(id);
    }

    /**
     * 查询自定义用户列表
     * 
     * @param cusUser 自定义用户
     * @return 自定义用户
     */
    @Override
    public List<CusUser> selectCusUserList(CusUser cusUser)
    {
        return cusUserMapper.selectCusUserList(cusUser);
    }

    /**
     * 新增自定义用户
     * 
     * @param cusUser 自定义用户
     * @return 结果
     */
    @Override
    public int insertCusUser(CusUser cusUser)
    {
        return cusUserMapper.insertCusUser(cusUser);
    }

    /**
     * 修改自定义用户
     * 
     * @param cusUser 自定义用户
     * @return 结果
     */
    @Override
    public int updateCusUser(CusUser cusUser)
    {
        return cusUserMapper.updateCusUser(cusUser);
    }

    /**
     * 批量删除自定义用户
     * 
     * @param ids 需要删除的自定义用户主键
     * @return 结果
     */
    @Override
    public int deleteCusUserByIds(Long[] ids)
    {
        return cusUserMapper.deleteCusUserByIds(ids);
    }

    /**
     * 删除自定义用户信息
     * 
     * @param id 自定义用户主键
     * @return 结果
     */
    @Override
    public int deleteCusUserById(Long id)
    {
        return cusUserMapper.deleteCusUserById(id);
    }
}
